@import '~scss/variables';
@import '~scss/mixins';

.node {
  margin-bottom: 30;
  height: 50px;
  background-color: #B2DFDF;
  // margin-top: 0;
  .title {
    // margin-top:-10px;
    font-weight: 550;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 17px;
  }
  &Status {
    // padding: px 0px;
    font-weight: 550;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 17px;
    margin-top: 10px;
    margin-bottom: 0;
  }
}

.components {
  height: 40%;
  margin-bottom: 0;

  .wrapper {
    .list {
      display: flex;
      flex-wrap: wrap;
      margin: 0 -3px;

      .item {
        flex: 1 0 250px;
        display: flex;
        align-items: center;
        padding: 0 10px;
        margin: 3px;
        border-radius: 4px;
        background-color: $card-bg-color;
        overflow: hidden;

        &.disabled {
          opacity: 0.4;
          cursor: unset !important;

          p {
            font-size: 16px;
            color: $second-text-color;
          }
        }
      }

      &.service {
        .item {
          flex: 1 0 250px;
          justify-content: space-between;
          cursor: pointer;

          img {
            width: 94px;
            height: 20px;
          }

          p {
            height: 44px;
            line-height: 44px;
            font-size: 26px;
            font-weight: 600;

            span {
              font-size: $size-small;
              line-height: 20px;
            }
          }
        }
      }

      &.core {
        .item {
          height: 44px;

          &Icon {
            flex: 0 0 1;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 24px;
            height: 20px;
            border-radius: 50%;
            margin-right: 12px;

            &.healthy,
            &.ready {
              background-color: $green;
            }

            &.unhealthy,
            &.warn {
              background-color: $yellow;
            }

            &.danger {
              background-color: $red;
            }

            &.unknown {
              background-color: $grey;
            }
          }

          p {
            font-weight: 500;
            @include ellipsis;
          }
        }
      }
    }
  }
}
